import requests,re
from lxml import etree


base_url = 'https://acs.m.taobao.com/h5/mtop.taobao.baichuan.smb.get/1.0/?jsv=2.3.16&appKey=12574478&t=1551084558623&sign=bb7c44064afd205fa1ba5f2485894a94&api=mtop.taobao.baichuan.smb.get&v=1.0&type=originaljson&dataType=jsonp&timeout=10000'

headers={
"Referer": "https://s.m.taobao.com/h5?event_submit_do_new_search_auction=1&_input_charset=utf-8&topSearch=1&atype=b&searchfrom=1&action=home%3Aredirect_app_action&from=1&sst=1&n=20&buying=buyitnow&q=%E8%A1%A3%E6%9C%8D",
"User-Agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36"
}


response = requests.get(base_url,headers=headers)
response.encoding = 'utf-8'

text = response.text
# print(text)
html = etree.HTML(text)
print(html)

res = html.xpath('//img[@class="p-pic"]/@src')
print(res)




